<?php

class base
{
    public function base()
    {
        $this->ci =& get_instance();
    }
    
    public function head_html($name_page)
    {
        $this->ci->load->model('m_settings');

        $site = $this->ci->m_settings->get()->first_row();

        $data = array();
        $data['name_page'] = $name_page;
        $data['WEB_NAME']          = $site->WEB_NAME;
        $data['WEB_DESCRIPTION']   = $site->WEB_DESCRIPTION;
        $data['WEB_LOGO']          = $site->WEB_LOGO;
        $data['IS_MAINTENANCE']    = $site->IS_MAINTENANCE;
        
        $this->ci->load->view('base/head_html', $data);
    }
}

?>